package Bean;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 张
 * Date: 2025-02-26
 * Time: 16:18
 */
//飞机类
public class Aircraft {
    private String aircraftId;
    //型号
    private String model;
    //当前状态
    private AircraftStatus currentStatus;
    //最大座位
    private int MaxSeats;

    public enum AircraftStatus{
        可用,维修中,停飞
    }

    public String getAircraftId() {
        return aircraftId;
    }

    public void setAircraftId(String aircraftId) {
        this.aircraftId = aircraftId;
    }

    public String getModel() {
        return model;
    }

    public void setModel(String model) {
        this.model = model;
    }

    public AircraftStatus getCurrentStatus() {
        return currentStatus;
    }

    public void setCurrentStatus(AircraftStatus currentStatus) {
        this.currentStatus = currentStatus;
    }

    public int getMaxSeats() {
        return MaxSeats;
    }

    public void setMaxSeats(int maxSeats) {
        MaxSeats = maxSeats;
    }

    @Override
    public String toString() {
        return "Aircraft{" +
                "AircraftId='" + aircraftId + '\'' +
                ", model='" + model + '\'' +
                ", currentStatus='" + currentStatus + '\'' +
                ", MaxSeats=" + MaxSeats +
                '}';
    }
}
